
import { createRouter, createWebHashHistory } from 'vue-router'
import { setupLayouts } from 'virtual:generated-layouts'
import generatedRoutes from 'virtual:generated-pages'

let routes = []
generatedRoutes.forEach(v => {
  routes.push(v?.meta?.layout != false ? setupLayouts([v])[0] : v)
})

export default createRouter({
    history: createWebHashHistory(), //路由的模式
    linkExactActiveClass: 'active',  //点击路由跳转的底部样式标量
    routes
  })